package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 第五组
 * @since 2022-09-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_article")
@ApiModel(value = "Article对象", description = "文章管理实体类")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("状态（1有效，0无效）")
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty("导航ID")
    private String navId;

    @ApiModelProperty("文章标题")
    private String artTitle;

    @ApiModelProperty("文章图片")
    private String artPic;

    @ApiModelProperty("文章描述")
    private String artDesc;
}
